package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 陈乙嘉
 * @data ${DATE} ${TIME}
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    private Integer id;
    private String name;
    private Integer parent;
    private Integer typeId;
    private String typeName;
    private Double price;
    private Integer putOn;//上下架
    private String size;
    private Integer recommend;//是否推荐
    private String description;//商品描述
    private Integer count;//库存
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Double minPrice;//最低价格
    private Double maxPrice;//最高价格
    private Integer status;//抢购状态
    private String imgUrl;
    private String warehouse;//仓库

}
